{if $groupId==1}
<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i
                                class="fa fa-refresh"></i> </a>
                        <a href="javascript:;"
                            class="btn btn-success btn-add {:$auth->check('family/questionnaire/add')?'':'hide'}"
                            title="{:__('Add')}"><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;"
                            class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('family/questionnaire/edit')?'':'hide'}"
                            title="{:__('Edit')}"><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;"
                            class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('family/questionnaire/del')?'':'hide'}"
                            title="{:__('Delete')}"><i class="fa fa-trash"></i> {:__('Delete')}</a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                        data-operate-edit="{:$auth->check('family/questionnaire/edit')}"
                        data-operate-del="{:$auth->check('family/questionnaire/del')}" width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
{/if}

{if $groupId==2||$groupId==3}

<style>
    .ccc {
        width: 200px;
    }

    .qqq {
        display: flex;
        
    }

    .zxc {
        margin-left: 20px;
    }

    .aaa {
        margin-top: 20px;
    }

    .zzz {
        margin: 0px 5px 0px 5px;
    }

    .sss {
        color: rgb(0, 85, 122);
        font-size: 20px;
    }

    .score {
        font-size: 40px;
        color: #429be8;
        text-align: center;
    }
</style>
<div class="row animated fadeInRight">
    <div class="col-md-12 qqq">
        <div class="box box-primary">
            <div class="panel-heading">
                {:__('家庭问卷')}
            </div>
            <div class="panel-body">
                {foreach name="list" item="vo"}
                <form id="update-form" role="form" data-toggle="validator" method="POST" action="" class="aaa">
                    <input id="c-qid" class="form-control hidden " name="row[qid]" type="text"
                        value="{$vo.id|htmlentities}" placeholder="答案">
                    <div class="sss">{$vo.subject|htmlentities}</div>
                    <div>
                        {foreach name="$vo.choice" item="co"}
                        <div class="qqq">
                            <div> {$co.ingredients|htmlentities}</div>
                            <div class="zzz">.</div>
                            <div> {$co.content|htmlentities}</div>
                        </div>
                        {/foreach}

                    </div>

                    <div class="qqq">
                        {if $vo.answer!=null}
                        <input id="c-answer" class="form-control ccc " disabled="disabled" type="text"
                            value="{$vo.answer|htmlentities}">
                        {/if}
                        {if $vo.answer==null}
                        <input id="c-answer" class="form-control ccc " name="row[answer]" type="text" value=""
                            placeholder="答案">
                        <button type="submit" class="btn btn-primary btn-embossed zxc">{:__('提交')}</button>
                        {/if}
                    </div>
                </form>
                {/foreach}
            </div>
        </div>

        <div class="box box-primary">
            <div class="panel-heading">
                {:__('得分情况')}
            </div>

            <div class="score">
                {$score|htmlentities}分
            </div>
            <div class="panel-heading">
                {:__('得分建议')}
            </div>
            <div class="proposal">
                {$proposal|htmlentities}
            </div>
        </div>
    </div>
</div>

{/if}